#include<iostream>

using namespace std;

int DownPay()
{
    double down, purchase, monthly;
    int loan, interest, tax;

    cout << "Down Payment: $ ";
    cin >> down;
    cout << "Purchase Price: $ ";
    cin >> purchase;
    cout << "Loan Term(months): ";
    cin >> loan;
    cout << "Interest Rate(%): ";
    cin >> interest;
    cout << "Tax Rate(%): ";
    cin >> tax;
    cout << endl;

    monthly = (purchase*(1+(interest/100))-down+(purchase*(tax/100)))/loan;

    cout << "Monthly Payment:       $ " << monthly << endl << endl;

   	system ("PAUSE");
	return 0;
}